<extend name="Public/base"/>

<block name="body">
	<div class="main-title">
		<h2>{$meta_title}</h2>
	</div>
	<div class="cf">
		<div class="fl">
			<a class="btn" href="{:U('addmsg')}">创建新插件</a>
			<button class="btn ajax-post confirm" url="{:U('delmsg')}" target-form="ids">删 除</button>
		</div>
	</div>
	<!-- 数据列表 -->
	<div class="data-table table-striped">
		<table class="">
			<thead>
				<tr>
					<th class="row-selected"><input class="check-all" type="checkbox"/></th>
					<th>ID</th>
					<th>标识</th>
					<th>提示名称</th>
					<th>创建时间</th>
					<th>状态</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
			<notempty name="_list">
				<volist name="_list" id="vo">
				<tr>
					<td><input class="ids" type="checkbox" name="id[]" value="{$vo.id}" /></td>
					<td>{$vo.id}</td>
					<td>{$vo.name}</td>
					<td>{$vo.title}</td>
					<td>{$vo.create_time|time_format}</td>
					<td>{$vo.status|get_status_title}</td>
					<td>
						<a href="{:U('editmsg?id='.$vo['id'])}">编辑</a>
						<a class="ajax-get" href="<eq name='vo.status' value='1'>{:U('forbmsg?id='.$vo['id'])}<else/>{:U('restmsg?id='.$vo['id'])}</eq>">{$vo.status|show_status_op}</a>
						<a class="ajax-get confirm" href="{:U('delmsg?id='.$vo['id'])}">删除</a>
					</td>
				</tr>
				</volist>
			<else/>
				<tr>
					<td colspan="7" class="text-center"> aOh! 暂时还没有内容! </td>
				</tr>
			</notempty>
			</tbody>
		</table>
	</div>
	<!-- 分页 -->
	<div class="page">
		{$_page}
	</div>
</block>